var MessageManager = require("MessageManager");
cc.Class({
    extends: cc.Component,

    properties: {

    },

    onLoad: function () {
        //MessageManager.setEventComponet(this);
        window.NotificationCenter = window.NotificationCenter || new cc.EventTarget();
        cc.game.addPersistRootNode(this.node);
    },


    start:function()
    {

    },

    processMsg:function(msgObj)
    {
        var cmdStr = msgObj.cmdID+'';
        console.log("processMsg"+cmdStr);
        //this.node.emit(cmdStr,msgObj);
        var NotificationCenter = new cc.EventTarget();
        NotificationCenter.emit('101');
    },
});
